FROM registry.cn-shanghai.aliyuncs.com/yisany/jre8:1.1.0

ARG JAR_FILE=dyform-app/target/*.jar
ADD ${JAR_FILE} /app/application.jar
ADD dyform-app/prod/bin/entrypoint.sh /app/bin/entrypoint.sh
COPY dyform-app/src/main/resources/ /app/config/

RUN chmod +x /app/bin/entrypoint.sh

WORKDIR /app

ENTRYPOINT ["sh", "/app/bin/entrypoint.sh", "start", "dyform-service"]

EXPOSE 8990